import axios from "axios";

// axios.defaults.baseURL = "http://8.148.22.60:16060";
axios.defaults.baseURL = "https://zs.dance2020.cc:16063";

export const createBaseInfo = (data) => {
  return axios.post("/app-api/dcert/application/create-person", {
    ...data,
    socialUid: sessionStorage.getItem("userId"),
  });
};

export const updatePhone = (data) => {
  return axios.post("/app-api/dcert/application/photo", data);
};

export const createBaseInfoCompany = (data) => {
  return axios.post("/app-api/dcert/application/create-org", {
    ...data,
    socialUid: sessionStorage.getItem("userId"),
  });
};

export const search = (params) => {
  return axios.get("/app-api/dcert/certificates/search", { params });
};

export const getFile = (params) => {
  return axios.get("/app-api/dcert/certificates/file", { params });
};
